<?

class graphDeviceIcmpInfoStatistics extends graphBase {
	protected $rrdFile = 'netstats_icmp.rrd';
	protected function getOptions() {
		return array(
			'DEF:InSrcQuenchs='.$this->rrdPath.':InSrcQuenchs:AVERAGE',
			'DEF:OutSrcQuenchs='.$this->rrdPath.':OutSrcQuenchs:AVERAGE',
			'DEF:InRedirects='.$this->rrdPath.':InRedirects:AVERAGE',
			'DEF:OutRedirects='.$this->rrdPath.':OutRedirects:AVERAGE',
			'DEF:InAddrMasks='.$this->rrdPath.':InAddrMasks:AVERAGE',
			'DEF:OutAddrMasks='.$this->rrdPath.':OutAddrMasks:AVERAGE',
			'DEF:InAddrMaskReps='.$this->rrdPath.':InAddrMaskReps:AVERAGE',
			'DEF:OutAddrMaskReps='.$this->rrdPath.':OutAddrMaskReps:AVERAGE',
			'DEF:InSrcQuenchs_m='.$this->rrdPath.':InSrcQuenchs:MAX',
			'DEF:OutSrcQuenchs_m='.$this->rrdPath.':OutSrcQuenchs:MAX',
			'DEF:InRedirects_m='.$this->rrdPath.':InRedirects:MAX',
			'DEF:OutRedirects_m='.$this->rrdPath.':OutRedirects:MAX',
			'DEF:InAddrMasks_m='.$this->rrdPath.':InAddrMasks:MAX',
			'DEF:OutAddrMasks_m='.$this->rrdPath.':OutAddrMasks:MAX',
			'DEF:InAddrMaskReps_m='.$this->rrdPath.':InAddrMaskReps:MAX',
			'DEF:OutAddrMaskReps_m='.$this->rrdPath.':OutAddrMaskReps:MAX',
			'CDEF:OutSrcQuenchs_Inv=OutSrcQuenchs,-1,*',
			'CDEF:OutRedirects_Inv=OutRedirects,-1,*',
			'CDEF:OutAddrMasks_Inv=OutAddrMasks,-1,*',
			'CDEF:OutAddrMaskReps_Inv=OutAddrMaskReps,-1,*',
			'LINE1.25:OutAddrMaskReps_Inv#990099:OutAddrMaskReps','GPRINT:OutAddrMaskReps:LAST:%6.2lf%s','GPRINT:OutAddrMaskReps:AVERAGE:%6.2lf%s','GPRINT:OutAddrMaskReps_m:MAX:%6.2lf%s\n',
			'LINE1.25:InAddrMaskReps#cc00cc:InAddrMaskReps ','GPRINT:InAddrMaskReps:LAST:%6.2lf%s','GPRINT:InAddrMaskReps:AVERAGE:%6.2lf%s','GPRINT:InAddrMaskReps:MAX:%6.2lf%s\n',
			'LINE1.25:OutAddrMasks_Inv#003399:OutAddrMasks   ','GPRINT:OutAddrMasks:LAST:%6.2lf%s','GPRINT:OutAddrMasks:AVERAGE:%6.2lf%s','GPRINT:OutAddrMasks_m:MAX:%6.2lf%s\n',
			'LINE1.25:InAddrMasks#0066cc:InAddrMasks    ','GPRINT:InAddrMasks:LAST:%6.2lf%s','GPRINT:InAddrMasks:AVERAGE:%6.2lf%s',	'GPRINT:InAddrMasks:MAX:%6.2lf%s\n',
			'LINE1.25:OutRedirects_Inv#660000:OutRedirects   ','GPRINT:OutRedirects:LAST:%6.2lf%s','GPRINT:OutRedirects:AVERAGE:%6.2lf%s','GPRINT:OutRedirects_m:MAX:%6.2lf%s\n',
			'LINE1.25:InRedirects#cc0000:InRedirects    ','GPRINT:InRedirects:LAST:%6.2lf%s','GPRINT:InRedirects:AVERAGE:%6.2lf%s','GPRINT:InRedirects_m:MAX:%6.2lf%s\n',
			'LINE1.25:OutSrcQuenchs_Inv#006600:OutSrcQuenchs  ','GPRINT:OutSrcQuenchs:LAST:%6.2lf%s','GPRINT:OutSrcQuenchs:AVERAGE:%6.2lf%s','GPRINT:OutSrcQuenchs_m:MAX:%6.2lf%s\n',
			'LINE1.25:InSrcQuenchs#00cc00:InSrcQuenchs   ','GPRINT:InSrcQuenchs:LAST:%6.2lf%s','GPRINT:InSrcQuenchs:AVERAGE:%6.2lf%s','GPRINT:InSrcQuenchs_m:MAX:%6.2lf%s\n',
			'COMMENT:Packets/sec    Current    Average   Maximum\n'
		);
	}

}